import Rest from '@/api/request'
export function gethomeData() {
    return Rest.get('/home/data')
}
//获取-用户基本资料
export function getUserInfo() {
    return Rest.get('/sys/profile')
}
// 首页-消息通知
export function getNotice() {
    return Rest.get('/sys/message')
}
// 更新某个消息的状态为已读
export function readNotice(id: number) {
    return Rest.put(`/sys/message/${id}`)
}
//删除消息
export function deleteNotice(id: number) {
    return Rest.delete(`/sys/message/${id}`)
}
//首页-消息通知
export function getMessage() {
    return Rest.get('/home/notice')
}